<%--
  Created by IntelliJ IDEA.
  User: axing
  Date: 2019/11/14
  Time: 下午1:28
  To change this template use File | Settings | File Templates.
--%>
<%@ page import="java.util.ArrayList" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
    欢迎进入购物平台！<br>
        <table>
        <c:forEach items="${sessionScope.commodities}" var="u">
            <br><br><br>
            ${u.photo}<br>
            商品编号:${u.cid}
            商品剩余数量:${u.number}
            <br>商品价格:${u.price}
            商品名称:${u.c_name}<br>
            <br><input type="button" value="加入购物车">
        </c:forEach>
        </table>
</body>
</html>
